﻿using Lhz.Common.Service;
using Lhz.Data.Linq.Nh;
using Lhz.Sc.Business;
using Lhz.Sc.Entity.Database;
using Lhz.Sc.Interface;
using System;
using System.Collections.Generic;

namespace Lhz.Sc.Service
{
    public class ServiceOperation : EntityService<OperationProxy, Guid, Operation>, IServiceOperation
    {
        public ServiceOperation() : base(new OperationProxy())
        {

        }

        public List<Operation> QueryByUserGuidAndServiceGuid(Guid userGuid, Guid serviceGuid, string[] paths)
        {
            return entityProxy.QueryByUserGuidAndServiceGuid(userGuid, serviceGuid).LoadByPathsAndClearProxyAndRestoreProxyData(paths);
        }
    }
}
